#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <graphics.h>
#include <conio.h>
#include <graphics.h>
#include <time.h>
#include <windows.h>
#include <easyx.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")



void cegg()
{
	initgraph(1000, 600);
	mciSendString("open ./G1(1).mp3", 0, 0, 0);
	mciSendString("play ./G1(1).mp3", 0, 0, 0);
	
	IMAGE img11;
	loadimage(&img11, "11.jpg");
	putimage(0, 0, &img11);
	Sleep(3000);
	IMAGE img12;
	loadimage(&img12, "12.jpg", 990, 590);
	putimage(0, 0, &img12);
	Sleep(3000);
	IMAGE img13;
	loadimage(&img13, "13.jpg", 990, 590);
	putimage(0, 0, &img13);
	Sleep(3000);
	IMAGE img14;
	loadimage(&img14, "14.jpg", 990, 590);
	putimage(0, 0, &img14);
	Sleep(3000);
	IMAGE img15;
	loadimage(&img15, "15.jpg", 990, 590);
	putimage(0, 0, &img15);
	Sleep(3000);
	IMAGE img16;
	loadimage(&img16, "16.jpg", 990, 590);
	putimage(0, 0, &img16);
	Sleep(3000);
	IMAGE img17;
	loadimage(&img17, "17.jpg", 990, 590);
	putimage(0, 0, &img17);
	Sleep(3000);
	IMAGE img18;
	loadimage(&img18, "18.jpg", 990, 590);
	putimage(0, 0, &img18);
	mciSendString("close ./G1(1).mp3", 0, 0, 0);
	Sleep(4000);

	mciSendString("open ./ngm.mp3", 0, 0, 0);
	mciSendString("play ./ngm.mp3", 0, 0, 0);

	IMAGE img19;
	loadimage(&img19, "19.png", 990, 590);
	putimage(0, 0, &img19);
	Sleep(3000);
	IMAGE img20;
	loadimage(&img20, "20.jpg", 990, 590);
	putimage(0, 0, &img20);
	Sleep(2000);

	int jntm = 8;
	for (; jntm > 0; jntm--)
	{
		IMAGE img1;
		loadimage(&img1, "1.jpg", 990, 590);
		putimage(0, 0, &img1);
		Sleep(200);
		IMAGE img2;
		loadimage(&img2, "2.jpg", 990, 590);
		putimage(0, 0, &img2);
		Sleep(200);
		IMAGE img3;
		loadimage(&img3, "3.jpg", 990, 590);
		putimage(0, 0, &img3);
		Sleep(200);
		IMAGE img4;
		loadimage(&img4, "4.jpg", 990, 590);
		putimage(0, 0, &img4);
		Sleep(200);
		IMAGE img5;
		loadimage(&img5, "5.jpg", 990, 590);
		putimage(0, 0, &img5);
		Sleep(200);
		IMAGE img6;
		loadimage(&img6, "6.jpg", 990, 590);
		putimage(0, 0, &img6);
		Sleep(200);
		IMAGE img7;
		loadimage(&img7, "7.jpg", 990, 590);
		putimage(0, 0, &img7);
		Sleep(200);
		IMAGE img8;
		loadimage(&img8, "8.jpg", 990, 590);
		putimage(0, 0, &img8);
		Sleep(200);
		IMAGE img9;
		loadimage(&img9, "9.jpg", 990, 590);
		putimage(0, 0, &img9);
		Sleep(200);
		IMAGE img10;
		loadimage(&img10, "10.jpg", 990, 590);
		putimage(0, 0, &img10);
	}
	
}
